import {axios,url} from '.';

export const login = async (username, pwd) => {
    const response = await axios({
        method: 'post',
        url: url + '/login',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        data:{
            username,pwd
        }
    });
    return response.data;
}

